package com.taotao.sso.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 页面展示
 * 
 * @author Administrator
 *
 */
@Controller
@RequestMapping(value = "/page")
public class PageController {
	/**
	 * 展示注册页面
	 * 
	 * @return
	 */
	@RequestMapping("/showRegister")
	public String showRegister() {
		return "register";
	}

	/**
	 * 展示登陆页面
	 * 
	 * @return
	 */
	@RequestMapping(value = "/showLogin")
	public String showLogin(String redirect, Model model) {
		model.addAttribute("redirect", redirect);
		return "login";
	}
}
